package top.glike.funct.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import top.glike.common.annotation.Excel;
import top.glike.common.core.domain.BaseEntity;

/**
 * 文章评论管理对象 gb_comments
 * 
 * @author Sophia
 * @date 2024-02-13
 */
public class GbComments extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String id;

    /** 文章ID */
    @Excel(name = "文章ID")
    private String articleId;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String articleTitle;

    /** 父级评论Id */
    @Excel(name = "父级评论Id")
    private String pid;

    /** 评论来源Id */
    @Excel(name = "评论来源Id")
    private String fromUserid;

    /** 评论来源 */
    @Excel(name = "评论来源")
    private String fromUsername;

    /** 来源评论用户头像 */
    @Excel(name = "来源评论用户头像")
    private String fromUserLogo;

    /** 回复评论用户Id */
    @Excel(name = "回复评论用户Id")
    private String toUserid;

    /** 回复评论名称 */
    @Excel(name = "回复评论名称")
    private String toUsername;

    /** 回复评论用户头像 */
    @Excel(name = "回复评论用户头像")
    private String toUserLogo;

    /** 回复评论内容 */
    @Excel(name = "回复评论内容")
    private String content;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setArticleId(String articleId) 
    {
        this.articleId = articleId;
    }

    public String getArticleId() 
    {
        return articleId;
    }
    public void setArticleTitle(String articleTitle) 
    {
        this.articleTitle = articleTitle;
    }

    public String getArticleTitle() 
    {
        return articleTitle;
    }
    public void setPid(String pid) 
    {
        this.pid = pid;
    }

    public String getPid() 
    {
        return pid;
    }
    public void setFromUserid(String fromUserid) 
    {
        this.fromUserid = fromUserid;
    }

    public String getFromUserid() 
    {
        return fromUserid;
    }
    public void setFromUsername(String fromUsername) 
    {
        this.fromUsername = fromUsername;
    }

    public String getFromUsername() 
    {
        return fromUsername;
    }
    public void setFromUserLogo(String fromUserLogo) 
    {
        this.fromUserLogo = fromUserLogo;
    }

    public String getFromUserLogo() 
    {
        return fromUserLogo;
    }
    public void setToUserid(String toUserid) 
    {
        this.toUserid = toUserid;
    }

    public String getToUserid() 
    {
        return toUserid;
    }
    public void setToUsername(String toUsername) 
    {
        this.toUsername = toUsername;
    }

    public String getToUsername() 
    {
        return toUsername;
    }
    public void setToUserLogo(String toUserLogo) 
    {
        this.toUserLogo = toUserLogo;
    }

    public String getToUserLogo() 
    {
        return toUserLogo;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("articleId", getArticleId())
            .append("articleTitle", getArticleTitle())
            .append("pid", getPid())
            .append("fromUserid", getFromUserid())
            .append("fromUsername", getFromUsername())
            .append("fromUserLogo", getFromUserLogo())
            .append("toUserid", getToUserid())
            .append("toUsername", getToUsername())
            .append("toUserLogo", getToUserLogo())
            .append("content", getContent())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
